package com.ruoqing.auth.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoqing.redis.domain.AuthPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
    * @title: AuthPermissionDao
    * @projectName ruoxi-blog
    * @description: 若兮微服务 - 认证授权中心 - 用户权限持久层接口
    * @author YaoXian
    * @date 2020-11-26 14:54
    */
public interface AuthPermissionDao extends BaseMapper<AuthPermission> {
  /**
   * 根据用户ID多表联查查询用户对应权限
   * @param userId
   * @return
   */
  List<AuthPermission> findPerByUserId(@Param("userId") Long userId);
}